export const option = function () {
  const self = this;
  return {
    menuBtn: false,
    labelWidth: 100,
    span: 24,
    submitIcon: ' ',
    emptyIcon: ' ',
    column: [
      {
        label: "上级部门",
        prop: "parentId",
        type: "tree",
        filter: false,
        multiple: false,
        dicData: self.treeData,
        props: {
          label: "name",
          value: "id",
          children: "childList"
        },
        rules: [
          { required: true, message: "上级部门不能为空", trigger: "change" },
        ],
      },
      {
        label: "部门名称",
        prop: "name",
        maxlength: 20,
        rules: [
          { required: true, message: "部门名称不能为空", trigger: "blur" },
        ],
      },
    ],
  }
};
